package com.cimpm.task.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.entity.Primary;
import com.hby.common.annotation.entity.Secondary;
import com.hby.common.annotation.entity.VerifyMultiRepetitionField;

import java.util.Date;

@TableName("task_task_flowtask_order_mapper")
public class TaskFlowtaskOrderMapper {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Primary
    @VerifyMultiRepetitionField
    private Integer taskFlowId;

    @Secondary
    @VerifyMultiRepetitionField
    private Integer taskOrderId;

    @TableLogic
    @TableField(value = "`is_deleted`")
    private Date isDeleted;

    @Version
    @TableField(value = "`version`")
    private Integer version;

    public Integer getId() { return id; }

    public void setId(Integer id) { this.id = id; }

    public Integer getTaskFlowId() { return taskFlowId; }

    public void setTaskFlowId(Integer taskFlowId) { this.taskFlowId = taskFlowId; }

    public Integer getTaskOrderId() { return taskOrderId; }

    public void setTaskOrderId(Integer taskOrderId) { this.taskOrderId = taskOrderId; }

    public Date getIsDeleted() { return isDeleted; }

    public void setIsDeleted(Date isDeleted) { this.isDeleted = isDeleted; }

    public Integer getVersion() { return version; }

    public void setVersion(Integer version) { this.version = version; }

    @Override
    public String toString() {
    return "taskFlowtaskOrderMapper{" +
            "id=" + id +
            ", taskFlowId=" + taskFlowId +
            ", taskOrderId=" + taskOrderId +
            ", isDeleted=" + isDeleted +
            ", version=" + version +
            '}';
    }

}
